home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
apmd.postrm
< prev
next >
Wrap
Text File
|
2008-06-19
|
687b
|
34 lines
#!/bin/sh
#
# This is the postrm script for the Debian GNU/Linux apmd package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
set -e
del_link ()
{
for FN in "${@}"; do
if [ -h "${FN}" ]; then
rm -f "${FN}" || true
fi
done
}
case "$1" in
(purge)
del_link /etc/apm/suspend.d/99hwclock /etc/apm/resume.d/00hwclock
[ -d /etc/apm/resume.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/resume.d
[ -d /etc/apm/suspend.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/suspend.d
;;
esac
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d apmd remove >/dev/null || exit $?
fi
# End automatically added section
exit 0